package com.stillalive.mybatis.mapper;

import com.stillalive.mybatis.model.ArticleInfo;
import com.stillalive.mybatis.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ArticleInfoMapper {
    ArticleInfo selectArticleInfoById(Integer id);
    @Select("select id, title, content, create_time, update_time " +
            "from article_info where title like concat('%',#{key},'%')")
    List<ArticleInfo> queryAllUserByLike(String key);
}
